import React from 'react'
import {Link} from 'react-router-dom'
import './HomeCate.less'
export default function HomeCate(props) {
    let { cateList } = props
    return (
        <div className="show">
            {/* 展示到页面 */}
            {
                cateList.map(item => {
                    return (
                        <Link className="show_cate" to={"/List?id="+item.id} key={item.id}>{item.catename}</Link>
                    )
                })
            }
        </div>
    )
}
